<div id="content" class="hfeed">
    <div class="page hentry entry">
        <div class="post-wrap">
            <div class="entry-content">

                <h2>View</h2>
                <dl>
                		<dt><?php echo __('Account Id'); ?></dt>
                		<dd>
                			<?php echo h($account['Account']['id']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Account Name'); ?></dt>
                		<dd>
                			<?php echo h($account['Account']['account_name']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Account Password'); ?></dt>
                		<dd>
                			<?php echo h($account['Account']['account_password']); ?>
                			&nbsp;
                		</dd>

                	</dl>

                <div class="related">
                	<h2><?php echo __('Related Customers'); ?></h2>
                	<?php if (!empty($account['Customer'])): ?>
                	<table cellpadding = "0" cellspacing = "0">
                	<tr>
                		<th><?php echo __('Customer Id'); ?></th>
                		<th><?php echo __('Customer Name'); ?></th>
                		<th><?php echo __('Customer Ssn'); ?></th>
                		<th><?php echo __('Customer Phone'); ?></th>
                		<th><?php echo __('Customer Address'); ?></th>
                		<th><?php echo __('Account Id'); ?></th>
                		<th class="actions"><?php echo __('Actions'); ?></th>
                	</tr>
                	<?php foreach ($account['Customer'] as $customer): ?>
                		<tr>
                			<td><?php echo $customer['customer_id']; ?></td>
                			<td><?php echo $customer['customer_name']; ?></td>
                			<td><?php echo $customer['customer_ssn']; ?></td>
                			<td><?php echo $customer['customer_phone']; ?></td>
                			<td><?php echo $customer['customer_address']; ?></td>
                			<td><?php echo $customer['id']; ?></td>
                			<td class="actions">
                				<?php echo $this->Html->link(__('View'), array('controller' => 'customers', 'action' => 'view', $customer['customer_id'])); ?>
                				<?php echo $this->Html->link(__('Edit'), array('controller' => 'customers', 'action' => 'edit', $customer['customer_id'])); ?>
                				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'customers', 'action' => 'delete', $customer['customer_id']), array(), __('Are you sure you want to delete # %s?', $customer['customer_id'])); ?>
                			</td>
                		</tr>
                	<?php endforeach; ?>
                	</table>
                <?php endif; ?>

                	<div class="actions">
                		<ul>
                			<li><?php echo $this->Html->link(__('New Customer'), array('controller' => 'customers', 'action' => 'add')); ?> </li>
                		</ul>
                	</div>
                </div>
                <div class="related">
                	<h3><?php echo __('Related Employees'); ?></h3>
                	<?php if (!empty($account['Employee'])): ?>
                	<table cellpadding = "0" cellspacing = "0">
                	<tr>
                		<th><?php echo __('Employee Id'); ?></th>
                		<th><?php echo __('Employee Code'); ?></th>
                		<th><?php echo __('Employee Name'); ?></th>
                		<th><?php echo __('Employee Phone'); ?></th>
                		<th><?php echo __('Account Id'); ?></th>
                		<th class="actions"><?php echo __('Actions'); ?></th>
                	</tr>
                	<?php foreach ($account['Employee'] as $employee): ?>
                		<tr>
                			<td><?php echo $employee['employee_id']; ?></td>
                			<td><?php echo $employee['employee_code']; ?></td>
                			<td><?php echo $employee['employee_name']; ?></td>
                			<td><?php echo $employee['employee_phone']; ?></td>
                			<td><?php echo $employee['id']; ?></td>
                			<td class="actions">
                				<?php echo $this->Html->link(__('View'), array('controller' => 'employees', 'action' => 'view', $employee['employee_id'])); ?>
                				<?php echo $this->Html->link(__('Edit'), array('controller' => 'employees', 'action' => 'edit', $employee['employee_id'])); ?>
                				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'employees', 'action' => 'delete', $employee['employee_id']), array(), __('Are you sure you want to delete # %s?', $employee['employee_id'])); ?>
                			</td>
                		</tr>
                	<?php endforeach; ?>
                	</table>
                <?php endif; ?>

                	<div class="actions">
                		<ul>
                			<li><?php echo $this->Html->link(__('New Employee'), array('controller' => 'employees', 'action' => 'add')); ?> </li>
                		</ul>
                	</div>
                </div>

            </div>
        </div>
    </div>
</div>
<div id="sidebar" class="sidebar">
    <div class="widget">
        <h4>Function</h4>
        <ul class="menu">
            <li><?php echo $this->Html->link(__('Edit Account'), array('action' => 'edit', $account['Account']['id'])); ?> </li>
            		<li><?php echo $this->Form->postLink(__('Delete Account'), array('action' => 'delete', $account['Account']['id']), array(), __('Are you sure you want to delete # %s?', $account['Account']['id'])); ?> </li>
            		<li><?php echo $this->Html->link(__('List Accounts'), array('action' => 'index')); ?> </li>
            		<li><?php echo $this->Html->link(__('New Account'), array('action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
